package com.itheima.service;

import com.itheima.common.PageReqDto;
import com.itheima.common.PageResult6;
import com.itheima.entity.Question;
import com.itheima.entity.QuestionsAudit;
import com.itheima.entity.QuestionsRecord;

import java.util.List;

public interface QuestionService {
    PageResult6 findAllBaseQues(PageReqDto pageReqDto,String email );

    void deleteById(Integer id);

    void addQue(Question question, String email);

    Question findById(Integer id);

    void modifyById(Integer id, Question question);

    void changePublishState(Integer id, Integer publishState);

    List<QuestionsAudit> auditOpinions(Integer id);

    List<QuestionsRecord> setRecords(Integer id);


    PageResult6 findQualityQues(PageReqDto pageReqDto, String email);

    PageResult6 findAllRandoms(PageReqDto pageReqDto);

    void deleteRandom(Integer id);

    void changeChoiceState(Integer id, Integer choiceState);

    void changeCheck(Integer id, Question que);
}
